<?php 
 if (!empty($_POST['valuation'])) {
 	$queryMyValuation="insert into valuation values(NULL,".$_POST['lesson_id'].",".$_SESSION['id'].",'".$_POST['valuation']."','".$_POST['term']."',NOW())";
	$resultMyValuation=$mysql->query($queryMyValuation);
    if ($resultMyValuation) {
      echo "<script>alert('评价成功！')</script>";
    }else{
      echo "<script>alert('评价失败！')</script>";
    }
 }
  ?>